package entity;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

@XmlType(propOrder={"cid","cname","grades_general","grades_final","grades_overall"})
public class CourseScore{

	private String cid;
	private String cname;
	private int grades_general;
	private int grades_final;
	private int grades_overall;
	
	public CourseScore(){
		super();
	}
	
	
	public CourseScore(String cid, String cname, int grades_general, int grades_final, int grades_overall) {
		super();
		this.cid = cid;
		this.cname = cname;
		this.grades_general = grades_general;
		this.grades_final = grades_final;
		this.grades_overall = grades_overall;	
	}
	@XmlElement(namespace="http://jw.nju.edu.cn/schema",name="课程编号")
	public String getCid() {
		return cid;
	}
	@XmlElement(namespace="http://jw.nju.edu.cn/schema",name="课程名称")
	public String getCname() {
		return cname;
	}
	@XmlElement(namespace="http://jw.nju.edu.cn/schema",name="平时成绩")
	public int getGrades_general() {
		return grades_general;
	}
	@XmlElement(namespace="http://jw.nju.edu.cn/schema",name="期末成绩")
	public int getGrades_final() {
		return grades_final;
	}
	@XmlElement(namespace="http://jw.nju.edu.cn/schema",name="总评")
	public int getGrades_overall() {
		return grades_overall;
	}
	public void setCid(String cid) {
		this.cid = cid;
	}
	public void setCname(String cname) {
		this.cname = cname;
	}

	public void setGrades_general(int grades_general) {
		this.grades_general = grades_general;
	}
	public void setGrades_final(int grades_final) {
		this.grades_final = grades_final;
	}
	public void setGrades_overall(int grades_overall) {
		this.grades_overall = grades_overall;
	}
}
